def play_game(game, *players):
    state = game.initial
    while True:
        for player in players:
            move = player(game, state)
            state = game.make_move(move, state)
            if game.terminal_test(state):
                game.display(state)
                return game.utility(state, players[0])


if __name__ == '__main__':
    from checkers.scripts.checkers_game import parse_cmd
    parse_cmd()
